home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3467 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: shellx.best.com!not-for-mail
  2. From: smurman@shellx.best.com (Scott Murman)
  3. Newsgroups: comp.lang.c++
  4. Subject: ANNOUNCE: Drat-0.1, a C++ interface to curses
  5. Date: 23 Jan 1996 23:57:02 -0800
  6. Organization: Best Internet Communications
  7. Message-ID: <4e4ooe$bl2@shellx.best.com>
  8. NNTP-Posting-Host: shellx.best.com
  9.  
  10. Drat provides an Object-Oriented interface to the curses library
  11. written in C++.  Drat is intended to allow OO programmers to quickly
  12. develop curses-based user interfaces, either before developing
  13. more sophisticated graphical UI, or as an additional feature of
  14. advanced interactive programs.
  15.  
  16. Drat includes form-based classes to handle some common interfaces
  17. including menus, input forms, and output forms.  These classes allow
  18. callbacks to be registered with form items, similar to the way in
  19. which X-Windows programs can register callbacks or event-handlers.
  20. This allows the data and methods associated with input processing to
  21. be encapsulated within a class.  For example,
  22.  
  23.     menu->AddEntry("Up one level", "u", UpTreeCallback);
  24.     menu->AddEntry("Save file", "s", SaveCallback);
  25.     menu->AddEntry("Quit", "q", QuitCallback);
  26.  
  27. would define a short menu, the input characters required to activate
  28. each menu entry, and the method to be invoked when the menu entry is
  29. chosen.
  30.  
  31. For more information see http://www.best.com/~smurman/Drat
  32.  
  33. Scott <smurman@best.com>
  34.